<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>条件渲染</title>
<!--引入Vue库-->
<script src="vue.js"></script>
</head>
<body>	
<div id="app">
  <template v-if="show">
     <h3>{{ title }}</h3>
     <p>Paragraph 1</p>
     <p>Paragraph 2</p>
  </template>
</div>
<script>
  var vm=new Vue({ 
      el: '#app', 
      data: { 
          show:true,
          title:'注册协议'
        }
      })
</script>
</body>
</html>
